<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta charset="<?php charset_attributes(); ?>" />
<title><?php echo (!isset($current_title) || $current_title == '')? $bloginfo['blogname'] : $current_title.' - '.$bloginfo['blogname']; ?></title>
<meta name="keywords" content="<?php echo $bloginfo['keyword']; ?>" /> 
<meta name="description" content="<?php echo $bloginfo['description']; ?>" /> 
<link rel="stylesheet" type="text/css" media="all" href="<?php echo base_url().THEME_PATH.$bloginfo['template'].'/style.css'; ?>" />
</head>
<body>
<div id="wrap">
	<div id="header">
		<div id="logo">
			<a href="<?php echo base_url(); ?>" title="<?php echo $bloginfo['blogname']; ?>" rel="home"><?php echo $bloginfo['blogname']; ?></a>
		</div>
			
		<div class="menu-header-container">
			<ul id="menu-header" class="menu">
				<li <?php if($current_position == 'home') echo 'class="current-menu-item"' ?>><a href="<?php echo base_url(); ?>" title="<?php echo $this->lang->line('default_home'); ?>"><?php echo $this->lang->line('default_home'); ?></a></li>
				<?php
				foreach($menu_pages as $key=>$val)
				{
					echo '<li class = "page_item page-item-'.$val->post_id.' '.($current_position == $val->post_id ? 'current-menu-item' : '').'"><a href = "'.base_url()."page/".$val->post_id.'" title = "'.$val->post_title.'">'.$val->post_title.'</a></li>';
				}
				?>
			</ul>
		</div>
	</div><!-- #header -->
		
	<div id="descr">
		<ul>
			<li><a id="rss_icon" href="#">RSS Feed</a></li>
		</ul>
		<?php echo $bloginfo['blogdescription']; ?>
	</div><!-- #descr -->
	

	<div id="content">
